<template>
  <div>
    <div class="main">
      <div class="center-view">
        <div class="avatar">
          <img src="@/assets/avatar.png" alt="" class="avatar-icon" v-if="!user">
          <img src="@/assets/login-in.jpg" alt="" class="avatar-icon" v-if="user">
          <div class="nick-name" v-if="!user">立即登录</div>
          <div class="nick-name" v-if="user">{{user}}</div>
        </div>
        <ul class="my-order-tab">
          <li>
            <img src="@/assets/list.png" alt="">
            <span>电影订单</span>
          </li>
          <li>
            <img src="@/assets/list1.png" alt="">
            <span>商品订单</span>
          </li>
        </ul>
        <!-- 列表 -->
        <div class="margin-set">
          <img src="@/assets/quan.png" width="20" height="20" alt="">
          <span class="label">卖座券</span>
          <img src="@/assets/user-right.png" alt="" class="arrow">
        </div>
        <div class="margin-set">
          <img src="@/assets/hb.png" width="20" height="20" alt="">
          <span class="label">组合红包</span>
          <img src="@/assets/user-right.png" alt="" class="arrow">
        </div>
        <div class="margin-set">
          <img src="@/assets/money.png" width="20" height="20" alt="">
          <span class="label">余额</span>
          <span class="value">
            <span class="price-decimal">
              <i>￥</i>
              <span class="interge" style="font-size:15px">0</span>
            </span>
          </span>
          <img src="@/assets/user-right.png" alt="" class="arrow">
        </div>
        <div class="margin-set">
          <img src="@/assets/setting.png" width="20" height="20" alt="">
          <span class="label">设置</span>
          <img src="@/assets/user-right.png" alt="" class="arrow">
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
data() {
  return {
    user:''
  }
},
created() {
  this.user = JSON.parse(localStorage.getItem("user"))
},
}
</script>

<style lang="scss" scoped>
*{
  margin: 0;
  padding:0;
  box-sizing: border-box;
}
ul,ol li{
  list-style: none
}
  .main{
    height: 100%;
    .center-view {
      position: relative;
      top: 0;
      right: 0;
      left: 0;
      font-size: 15px;
      background: #f4f4f4;
      margin-bottom: 59px;
      .avatar {
          text-align: center;
          margin-top: -44px;
          height: 200px;
          padding-left: 22px;
          padding-top: 64px;
          background: url(../../assets/userbg.png);
          background-size: cover;
          display: flex;
          align-items: center;
          color: #fff;
          .avatar-icon {
            width: 63px;
            height: 63px;
            border-radius: 35px;
            margin-right: 20px;
            border: 2px solid #fff;
        }
        .nick-name {
              font-size: 16px;
          }
      }
      .my-order-tab {
          width: 100%;
          margin: 0 auto;
          display: flex;
          text-align: center;
          font-size: 13px;
          padding: 0;
          height: 79px;
          background: #fff;
          margin-bottom: 10px;
          align-items: center;
          li {
              position: relative;
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: space-around;
              flex: 1;
              list-style: none;
              .common-p {
                color: #797d82;
            }
            img{
              width: 26px;
              height: 26px;
            }
          }
      }
      .margin-set {
          background: #fff;
          padding: 0 15px;
          height: 49px;
          display: flex;
          align-items: center;
          .label {
            margin-left: 15px;
            color: #191a1b;
            flex: 1;
          }
          .value{
                text-align: right;
                color: #797d82;
                padding-right: 14px;
                .price-decimal {
                      color: #797d82;
                      float: none;
                      font-size: 15px;
                      color: #797d82;;
                      height: 0!important;
                      display: inline-table!important;
                      span {
                            float: none!important;
                        }
                      i {
                          font-size: 11px;
                          font-style: normal;
                      }
                  }
          }
           .arrow {
                text-align: right;
                width: 6px;
                height: 10px;
            }
      }
    }
    
  }
</style>